
const configConst = {}
configConst.setConfig = {
    // EN
    language: "base.language",
    // Administrator password
    password: "base.password",
    // Facial recognition similarity
    similarity: "face.similarity",
    // Liveness detection
    livenessOff: "face.livenessOff",
    // Liveness detection threshold
    livenessVal: "face.livenessVal",
    showNir: "face.showNir",
    detectMask: "face.detectMask",
    // ["No audio", "Please register before playing", "Play 'Hello Stranger'"]
    stranger: "face.stranger",
    // ["No audio", "Play Name", "Play Greeting"]
    voiceMode: "face.voiceMode",
    voiceModeDate: "face.voiceModeDate",
    addr: "mqtt.addr",
    mqttclientId: "mqtt.clientId",
    mqttusername: "mqtt.username",
    mqttpassword: "mqtt.password",
    mqttqos: "mqtt.qos",
    mqttprefix: "mqtt.prefix",
    onlinecheck: "mqtt.onlinecheck",
    timeout: "mqtt.timeout",
    willTopic: "mqtt.willTopic",
    type: "net.type",
    ssid: "net.ssid",
    psk: "net.psk",
    dhcp: "net.dhcp",
    ip: "net.ip",
    gateway: "net.gateway",
    mask: "net.mask",
    dns: "net.dns",
    mac: "net.mac",
    ntp: "ntp.ntp",
    server: "ntp.server",
    ntpInterval: "ntp.interval",
    gmt: "ntp.gmt",
    version: "sys.version",
    appVersion: "sys.appVersion",
    releaseTime: "sys.releaseTime",
    heart_en: "sys.heart_en",// Heartbeat 1 On 0 Off
    heart_time: "sys.heart_time",
    nfc: "sys.nfc",// 1 On 0 Off Card Swipe Switch
    pwd: "sys.pwd",// 1 Open 0 Close Password Door Opener
    interval: "sys.interval",
    strangerImage: "sys.strangerImage",// 1 On 0 Off Toggle for strangers saving pictures
    accessImageType: "sys.accessImageType",// 1 face, 0 panoramas, passable image type
    com_passwd: "sys.com_passwd", // Configuration code password verification
    // Cloud Certificate Switch 3: Cloud Certificate Acquisition 1: Physical Card Number
    nfcIdentityCardEnable: "sys.nfcIdentityCardEnable",
    offlineAccessNum: "access.offlineAccessNum",
    relayTime: "access.relayTime",
    tamperAlarm: "access.tamperAlarm",
    // Screen-off time, in minutes, 0 never
    screenOff: "base.screenOff",
    // Screen saver, in minutes, 0 never
    screensaver: "base.screensaver",
    brightness: "base.brightness",
    brightnessAuto: "base.brightnessAuto",
    volume: "base.volume",
    showIp: "base.showIp",
    showSn: "base.showSn",
    showProgramCode: "base.showProgramCode",
    showIdentityCard: "base.showIdentityCard",
    appMode: "base.appMode",
    luminanceWhite: "base.luminanceWhite",
    luminanceNir: "base.luminanceNir"

}
//Retrieve the value from setCofig based on the key
configConst.getValueByKey = function (key) {
    return this.setConfig[key] || undefined;
}

export default configConst